package com.example.lib_db.db.room.another

import androidx.room.Dao
import androidx.room.Insert
import androidx.room.Query
import androidx.room.Update


@Dao
interface OrderDao {

    @Insert
    fun addOrder(entity: OrderEntity):Long

    @Query("select * from `order` where status=:status")
    fun getOrdersByStatus(status:Int):List<OrderEntity>

    @Update
    fun updateOrder(entity: OrderEntity):Int
}